//
//  CarRecodViewController.h
//  STool
//
//  Created by banggo on 15/7/6.
//
//


#import <UIKit/UIKit.h>
typedef enum
{
    CAR_Record = 0,//
    CAR_Info = 1,
    CAR_NEW_Record = 2,
    CAR_NEW_Info = 3,
    others = 4,
}CarCellType;

#define TABLENAME_CARRECORD @"CarRecord"
#define TABLENAME_CARINFO @"CarInfo"
#define DBNAME @"CarDB"
@class CarInfo;
@class CarModel;
@interface CarRecodViewController : UIViewController

@property (nonatomic,strong)NSString *carId;

@property (weak, nonatomic) IBOutlet UITableView *tableViews;
@property (strong,nonatomic)NSMutableArray *dataArray;
@property (strong,nonatomic)NSMutableArray *recordArray;
@property (strong,nonatomic)NSMutableArray *carArray;

@property (strong ,nonatomic)UIButton *rightButton;

- (void)getCarDatas;
- (void)getChooseCarData;
- (void)getRecordDatas;
- (void)insertNewRecordWithTimestamp:(NSString*)timestamp;
- (void)tableViewAddIndexZeroObject:(CarModel*)obejct;
- (void)tableViewRemoveObjectAtIndexZero;

- (void)tableViewRemoveCellOfCarinfo;
@end

@interface CarModel : NSObject

@property (strong , nonatomic)NSMutableDictionary *dataDictionary;
@property (assign , nonatomic)CarCellType carCellType;
@property (strong , nonatomic)id model;

@end